$(document).ready(function(){
	
	$("#names").submit(function(){
		
		var n=$("#name").val();
		var s=$("#surname").val();
		
		if(n=="kostas" && s=="kougios")
		{
			var message="hallo master J";
		
				
		}else if(s=="ivanov" || s=="ivanova")
		{
			
			var message="hallo member of the ivanovas family";
		}
		else
		{
			var message="I don't know you. Bye!";
		}
		

		$("#box").show().html(message);
		return false;
	});
	

});
